package com.xj.studyapollo.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @Value("${timeout:默认值}")
    public Integer timeout;

    @GetMapping(value = "hello")
    public String hello() {
        return "apollo配置的超时时间：" + timeout;
    }

}
